﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" 
culture="auto" meta:resourcekey="PageResource1" uiculture="auto"
CodeFile="TrackingAdd.aspx.cs" Inherits="TrackingManage_TrackingAdd" Title="新增车辆动态" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<base target="_self" />
    <div class="title">
        &nbsp;<asp:Label ID="lblPageType" runat="server" Text="新增车辆动态" meta:resourcekey="lblPageTypeResource1"></asp:Label></div>
    <table class="add_table" cellspacing="1" cellpadding="3" align="center">
        <tr>
            <td align="right">
                    <b style="color: Red">*</b><asp:Label ID="lblTruckStatus" runat="server" Text="动态：" meta:resourcekey="lblTruckStatusResource1"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlTruckStatus" runat="server" 
                    meta:resourcekey="ddlTruckStatusResource1"></asp:DropDownList>
                <asp:RequiredFieldValidator ID="rqvalTruckStatus" runat="server" ControlToValidate="ddlTruckStatus" meta:resourcekey="rqvalTruckStatusResource1"
                    ErrorMessage="动态不能为空" ValidationGroup="ts"></asp:RequiredFieldValidator>
            </td>
        </tr>
          <tr>
            <td align="right">
                    <b style="color: Red">*</b><asp:Label ID="lblCBDate" runat="server" Text="开始时间：" meta:resourcekey="lblCBDateResource1"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtCBDate" runat="server" onkeydown="return pdDate(this,event);" Width="100px"
                    ValidationGroup="ts" meta:resourcekey="txtCBDateResource1"></asp:TextBox>
                <asp:TextBox ID="txtCBDateH" runat="server" Width="50px" ValidationGroup="ts"></asp:TextBox>
                <asp:RequiredFieldValidator
                        ID="rqvalCBDate" runat="server" ControlToValidate="txtCBDate" meta:resourcekey="rqvalCBDateResource1"
                        ErrorMessage="开始时间不能为空" ValidationGroup="ts"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="rqvalCBDate2" runat="server" ControlToValidate="txtCBDate" meta:resourcekey="rqvalCBDate2Resource1"
                    errormessage="日期格式不正确" ValidationGroup="ts" 
                    ValidationExpression="((1[89]\d{2})|([2-8]\d{3}))[-](([1][012])|(0{1}[1-9]))[-]((3[01])|([12]\d)|(0{1}[1-9]))">
                </asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="rqvalCBDateH" runat="server" ControlToValidate="txtCBDateH" meta:resourcekey="rqvalCBDateHResource1"
                    errormessage="时间格式不正确" ValidationGroup="ts" 
                    ValidationExpression="(([0][0-9])|([1][0-9])|([2][0-3]))([0-5][0-9])">
                </asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right"><asp:Label ID="lblRemark" runat="server" Text="备注：" meta:resourcekey="lblRemarkResource1"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtRemark" runat="server" Width="172px" ValidationGroup="ts" 
                    meta:resourcekey="txtRemarkResource1"></asp:TextBox>
            </td>
        </tr>
    </table>
    <table class="add_table" cellspacing="1" cellpadding="3">
        <tr>
            <td align="center">
                <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" 
                    CssClass="btn" ValidationGroup="ts" meta:resourcekey="btnSaveResource1" />
               &nbsp; <asp:Button ID="btnReset" runat="server" Text="返回" CssClass="btn" 
                    OnClick="btnReset_Click" meta:resourcekey="btnResetResource1" />

            </td>
        </tr>
    </table>      
</asp:Content>